import { Reducer, AnyAction } from "redux";

const doSomeThing: Reducer = (state: any = "", action: AnyAction) => {
	switch (action.type) {
		case "BEGIN":
			return `${state} begin something`;
		case "DO":
			return `${state} do something`;
		case "DONE":
			return `${state} done something`;
		default:
			return state;
	}
};

export default doSomeThing;
